package com.example.elm.Account

import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.appcompat.app.AppCompatActivity
import com.example.elm.Public.AccountInfo
import com.example.elm.databinding.AllOdersBinding

class OdersActivity : ComponentActivity() {
    private lateinit var binding: AllOdersBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = AllOdersBinding.inflate(layoutInflater)
        setContentView(binding.root)
        val AccountInformation = CommonUtil.getSerializable(this, "info", AccountInfo::class.java)

        binding.back.setOnClickListener {
            val intent = Intent()
            intent.putExtra("info", AccountInformation)
            setResult(RESULT_OK, intent)
            finish()
        }
    }
}